﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JNPF.Basics.Models.DataInterface.Entities
{
    /// <summary>
    /// 数据接口
    /// 版 本：V3.0.0
    /// 版 权：引迈信息技术有限公司（https://www.jnpfsoft.com）
    /// 作 者：JNPF开发平台组
    /// 日 期：2017.11.28 
    /// </summary>
    [Table("BASE_DATAINTERFACE")]
    public class DataInterfaceEntity
    {
        /// <summary>
        /// 自然主键
        /// </summary>
        [Key]
        [Column("F_ID")]
        public string Id { get; set; }
        /// <summary>
        /// 分类ID
        /// </summary>
        [Column("F_CATEGORYID")]
        public string CategoryId { get; set; }
        /// <summary>
        /// 接口名
        /// </summary>
        [Column("F_FULLNAME")]
        public string FullName { get; set; }
        /// <summary>
        /// 接口链接
        /// </summary>
        [Column("F_PATH")]
        public string Path { get; set; }
        /// <summary>
        /// 请求方式
        /// </summary>
        [Column("F_REQUESTMETHOD")]
        public string RequestMethod { get; set; }
        /// <summary>
        /// 返回类型
        /// </summary>
        [Column("F_RESPONSETYPE")]
        public string ResponseType { get; set; }
        /// <summary>
        /// 查询语句
        /// </summary>
        [Column("F_QUERY")]
        public string Query { get; set; }
        /// <summary>
        /// 接口入参
        /// </summary>
        [Column("F_REQUESTPARAMETERS")]
        public string RequestParameters { get; set; }
        /// <summary>
        /// 接口出参
        /// </summary>
        [Column("F_RESPONSEPARAMETERS")]
        public string ResponseParameters { get; set; }
        /// <summary>
        /// 编码
        /// </summary>
        [Column("F_ENCODE")]
        public string EnCode { get; set; }
        /// <summary>
        /// 排序号
        /// </summary>
        [Column("F_SORTCODE")]
        public long? SortCode { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        [Column("F_ENABLEDMARK")]
        public int? EnabledMark { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        [Column("F_DESCRIPTION")]
        public string Description { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("F_CREATORTIME")]
        public DateTime? CreatorTime { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        [Column("F_CREATORUSERID")]
        public string CreatorUserId { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        [Column("F_LASTMODIFYTIME")]
        public DateTime? LastModifyTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        [Column("F_LASTMODIFYUSERID")]
        public string LastModifyUserId { get; set; }
        /// <summary>
        /// 删除标志
        /// </summary>
        [Column("F_DELETEMARK")]
        public int? DeleteMark { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        [Column("F_DELETETIME")]
        public DateTime? DeleteTime { get; set; }
        /// <summary>
        /// 删除人
        /// </summary>
        [Column("F_DELETEUSERID")]
        public string DeleteUserId { get; set; }
        /// <summary>
        /// 数据源id
        /// </summary>
        [Column("F_DBLINKID")]
        public string DBLinkId { get; set; }
        /// <summary>
        /// 数据类型(1-SQL数据，2-静态数据，3-Api数据)
        /// </summary>
        [Column("F_DATATYPE")]
        public int? DataType { get; set; }

    }
}
